<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/jsplib/pubhead.jsp"%>
<%@ page import="net.comm.common.ValueMaping" %>
<%@ taglib uri="/WEB-INF/myTaglib.tld" prefix="tag"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>社区部落活动</title>
	<link href="${cpath}/css/youlin.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<!--外套 start -->
<div class="wrap">
  <!--页首 start -->
	<%@ include file="/menu.jsp"%>
  <!--页首 end -->  
  
  <!--导航面包屑 start -->
  <div class="breadCrumb">
  <div class="breadCrumbNav">当前位置：<a href="${cpath}/users.do?action=main">我的主页</a> >> <a href="${cpath}/group_get/groupID_${theForm.qryGroupID}.html">部落</a> >> <a >活动</a></div>
	<%@ include file="/navf.jsp"%>
 </div> 
  <!--导航面包屑 end -->
  
  <!--主体 start -->
 <div class="body">
 
  <div class="hotBox1">  
    <div class="hotBox1-left">
      <a href="${cpath}/group_get/groupID_${theForm.qryGroupID}.html"><img src="${cpath}/${myfn:getGroupPic(theForm.qryGroupID)}" width="75" height="75" class="shequ icon user_icon_2"></a>
        <p class="nav"><a href="${cpath}/group_get/groupID_${theForm.qryGroupID}.html">${myfn:getGroupName(theForm.qryGroupID)}</a>&nbsp;&gt;&nbsp;<a >活动区</p>
      </div>
    <div class="hotBox1-right">
      <p><a href="javascript:history.go(-1);"><img src="${cpath}/images/icon_32.gif" width="137" height="25" /></a></p>
	  <c:if test="${myfn:groupAddFlag(theForm.qryGroupID,userID) == 1}">
      <p><a href="${cpath}/gparty.do?action=addPage&groupID=${theForm.qryGroupID}"><img src="${cpath}/images/icon_41.gif" width="215" height="47" /></a></p>
	  </c:if>
    </div>
  </div> 
<div class="nav-active">
  <ul>
    <li 
    <c:if test="${theForm.action == 'adlist' && theForm.qryUserID == 0 }">
	class="current"
    </c:if>	
	><a href="${cpath}/gparty.do?action=adlist&qryGroupID=${theForm.qryGroupID}" >最新活动</a></li>
    <li 
	<c:if test="${theForm.action == 'adlist' && theForm.qryUserID != 0 }">
	class="current"
    </c:if>	
	><a href="${cpath}/gparty.do?action=adlist&qryGroupID=${theForm.qryGroupID}&qryUserID=${userID}" >我发起的活动</a></li>
    <li
    <c:if test="${theForm.action == 'listmyAdd' }">
	class="current"
    </c:if>	
	><a href="${cpath}/gparty.do?action=listmyAdd&qryGroupID=${theForm.qryGroupID}&qryUserID=${userID}" >我加入的活动</a></li>
  </ul>
 </div>  

   <form action="${cpath}/gparty .do" name="theForm"  method="post" enctype="multipart/form-data" >
   <div class="left-Box6-content-inner">
	<table class="noticeList_tbl"width="100%"  align="center" cellpadding="0" cellspacing="0">
          <tr class="top">
            <td width="5%" align="center">序号</td>
            <td width="9%" align="center">类型</td>
            <td width="37%" align="left">标题</td>
            <td width="16%" align="center">状态</td>
            <td width="13%" align="center">参加人数</td>
            <td width="8%" align="center">发起人</td>
            <td width="12%" align="center">活动时间</td>
          </tr>
		<c:forEach var="party" items="${partylist}" varStatus="status">   
          <tr>
            <td width="5%" align="center">${status.count}</td>
            <td width="9%" align="center">${myfn:getProperty(6,party.firsort)}</td>
            <td width="37%" align="left"><a href="${cpath}/gparty_info/partyID_${party.partyID}.html" target="_blank"><c:out value="${party.title}"></c:out></td>
            <td width="16%" align="center">
			
			<c:if test="${addflg == 'no' && !myfn:bjudgeRange(party.signEtime) }"> 
			<A href="${cpath}/gsignup.do?action=add&&partyID=${party.partyID}"><font color="red">加入并报名</font></A>
			</c:if>
			<c:if test="${addflg == 'yes' && !myfn:bjudgeRange(party.signEtime) && party.userID != userID }"> 
			 <A href="${cpath}/gsignup.do?action=add&partyID=${party.partyID}"><img src="${cpath}/images/an01.png" /></A>
			</c:if>

			<c:if test="${myfn:bjudgeRange(party.endtime) }">活动结束</c:if></td>
            <td width="13%" align="center">${party.signNum}</td>
            <td width="8%" align="center"><a href="${cpath}/users_home/userID_${party.userID}.html"><img src="${cpath}/${myfn:getUserPic(party.userID)}" width="29" height="27">&nbsp;${myfn:getUserNick(party.userID)}</a></td>
            <td width="12%" align="center">${myfn:formatMDHM(party.bgtime)}</td>
          </tr>
		</c:forEach> 
    </table>
   </div>
   <div class="page">
	<input type="hidden" name='qryGroupID' value='${theForm.qryGroupID}'/>
	<!-- 分页主键 formName字段当前的form名称 -->
	<%@ include file="/jsplib/page.jsp" %>
	<!--隐藏域-->
	<input type="hidden" name='action' value='adlist'/>
    </div>
   <div class="clearFloat"></div>
   </form>
  
    <div class="clearFloat"></div>
 </div> 
 <!--主体 end -->
 
 
 <!--页脚 start -->
	<%@ include file="/foot.jsp"%>
 <!--页脚 end --> 
</div>
<!--外套 end -->

</body>
</html>
<script>
    /**
     * 检查项目资料维护
     */
	function doConfirm()
	{
		var form = document.theForm;

		var action = form['action'];

		form.submit();
	}
</script>